import $http  from "@/utils/request.js";



/**
 * 通过用户授权登录拿到的code
 * @param  code
 */
export function addPet(data) {

  return $http({
    url: `/api/pet/add`,
    method: "post",
    data:data,
  });
}

export function getPetCateList(data) {

  return $http({
    url: `/api/ajax/getPetCateList`,
    method: "get",
    data:data,
  });
}

export function getPetList(data) {

  return $http({
    url: `/api/pet/list`,
    method: "post",
    data:data,
  });
}

export function getDescList(data) {

  return $http({
    url: `/api/ajax/getDescList`,
    method: "get",
    data:data,
  });
}

export function addRecord(data) {

  return $http({
    url: `/api/pet/addRecord`,
    method: "post",
    data:data,
  });
}

export function recordList(data) {

  return $http({
    url: `/api/pet/recordList`,
    method: "post",
    data:data,
  });
}

export function petDetail(data) {

  return $http({
    url: `/api/pet/detail`,
    method: "post",
    data:data,
  });
}

export function petDel(data) {

  return $http({
    url: `/api/pet/del`,
    method: "post",
    data:data,
  });
}

export function petEdit(data) {

  return $http({
    url: `/api/pet/edit`,
    method: "post",
    data:data,
  });
}

export function Retrieved(data) {

  return $http({
    url: `/api/pet/recover`,
    method: "post",
    data:data,
  });
}

export function petInfo(data) {

  return $http({
    url: `/api/pet/info`,
    method: "post",
    data:data,
  });
}

export function getRegionInfo(data) {

  return $http({
    url: `/api/ajax/getRegionInfo`,
    method: "post",
    data:data,
  });
}

export function saveScavengerInfo(data) {

  return $http({
    url: `/api/pet/saveScavengerInfo`,
    method: "post",
    data:data,
  });
}




